﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace System.Models.Models
{
    /// <summary>
    /// 权限表
    /// </summary>
    [Table("T_Jurisdiction")]
    public class Jurisdiction:BaseEntity
    {
        /// <summary>
        /// 权限名
        /// </summary>
        public string PowerName { get; set; }
        /// <summary>
        /// 菜单外键
        /// </summary>
        [Required,ForeignKey(nameof(FkId))]
        public int MenusId { get; set; }
        public Menus FkId { get; set; }

        /// <summary>
        /// 角色表外键
        /// </summary>
        [ForeignKey(nameof(FkId1))]
        public int DepartmentRoleId { get; set; }
        public DepartmentRole FkId1 { get; set; }
    }
}
